package net.xju_3_4.entity;

import java.util.List;

public class StudentClazz {
    private Integer id;
    private String clazzName;
    private Integer sum;

    private List<Student> studentList;


    public StudentClazz(Integer id, String clazzName, Integer sum, List<Student> studentList) {
        this.id = id;
        this.clazzName = clazzName;
        this.sum = sum;
        this.studentList = studentList;
    }

    public StudentClazz() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClazzName() {
        return clazzName;
    }

    public void setClazzName(String clazzName) {
        this.clazzName = clazzName;
    }

    public Integer getSum() {
        return sum;
    }

    public void setSum(Integer sum) {
        this.sum = sum;
    }

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    @Override
    public String toString() {
        return "StudentClazz{" +
                "id=" + id +
                ", clazzName='" + clazzName + '\'' +
                ", sum=" + sum +
                ", studentList=" + studentList +
                '}';
    }
}
